import request from '@/utils/request'

// 查询商户体现记录列表
export function listRecode(query) {
  return request({
    url: '/income/recode/list',
    method: 'get',
    params: query
  })
}

// 查询商户体现记录详细
export function getRecode(merchantDeptId) {
  return request({
    url: '/income/recode/' + merchantDeptId,
    method: 'get'
  })
}

// 新增商户体现记录
export function addRecode(data) {
  return request({
    url: '/income/recode',
    method: 'post',
    data: data
  })
}

// 修改商户体现记录
export function updateRecode(data) {
  return request({
    url: '/income/recode',
    method: 'put',
    data: data
  })
}

// 删除商户体现记录
export function delRecode(merchantDeptId) {
  return request({
    url: '/income/recode/' + merchantDeptId,
    method: 'delete'
  })
}
